package org.finegold.core.pay.unionpay.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * <B>Description:</B>
 *
 * @Author QinXueFeng
 * @Date 2020/9/7 11:17
 * @Version 1.0.10
 * @VersionList <pre>
 *    版本        修改人        修改日期        修改描述
 *    ------------------------------------------------------------
 *    1.0.10       QinXueFeng        2020/9/7 11:17        create
 *    ------------------------------------------------------------
 * </pre>
 */
@Builder
@Data
public class UnionModel extends BaseModel {

	@ApiModelProperty("报文请求时间")
	private String requestTimestamp;

	@ApiModelProperty("订单号")
	private String billNo;

	@ApiModelProperty("订单号")
	private String merOrderId;

	@ApiModelProperty("过期时间")
	private String expireTime;

	@ApiModelProperty("商户号")
	private String mid;

	@ApiModelProperty("终端号")
	private String tid;

	@ApiModelProperty("业务类型")
	private String instMid;

	@ApiModelProperty("网页跳转地址")
	private String returnUrl;

	@ApiModelProperty("支付结果通知地址")
	private String notifyUrl;

	@ApiModelProperty("总金额")
	private String totalAmount;

	@ApiModelProperty("请求地址")
	private String severUrl;

	@ApiModelProperty("关闭请求地址")
	private String closeUrl;

	@ApiModelProperty("二维码地址")
	private String qrCodeId;

	@ApiModelProperty("appId")
	private String appId;

	@ApiModelProperty("appKey")
	private String appKey;

	@ApiModelProperty("来源编号")
	private String lybh;

	@ApiModelProperty("支付方式")
	private String tradeType;

	@ApiModelProperty("微信商户appid")
	private String subAppId;

	public void setBillNo(String billNo) {
		this.billNo = lybh+billNo;
	}
}
